<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    [v-cloak]{
      display: none;
    }
    .content{
      color:red;
    }
    .height{
      height:100px;
    }
    .border{
      border:1px solid red;
    }
  </style>
</head>
<body>
  <div id="app" v-cloak>

    <!-- <div v-for="(item,index) in arr">
      {{item}}-{{index}}
    </div> -->
    <!-- <div v-for="(item,index) in 10">
      {{item}}-{{index}}
    </div> -->

    <!-- <p :class="content">v-bind</p> -->

    <!-- <div :style="{border:'1px solid red',background:'blue'}">style</div> -->

    <!-- {{data}}
      
    {{fn(1,2)}} -->
      <div :style="{width:'100px'}" :class="['height','border']" @click.once="fn()" ></div>
  </div>
</body>
</html>
<script src="../packages/vue.js"></script>
<script>
  const vm = new Vue({
    el:'#app',
    data(){
      return {
        data:222,
        content:"content",
        arr:['a','b','c','d','e'],
        height: 'height',
        border:'border'

      }
    },
    methods:{
      // fn(x,y){
      //   return x+y;
      // }
      fn(){
        console.log("事件");
      }
    }
  })
</script>
